package com.cap.bts.framework.location.dao.impl;

import java.util.List;

import javax.inject.Inject;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Repository;

import com.cap.bts.framework.common.dao.impl.BaseDaoImpl;
import com.cap.bts.framework.location.dao.LocationInfoDao;
import com.cap.bts.framework.location.domain.LocationInfo;

/**
 * @author: huiwu
 * @data：Oct 14, 2014
 * 
 */
@Repository("locationInfoDao")
public class LocationInfoDaoImpl extends BaseDaoImpl<LocationInfo, Long> implements LocationInfoDao {

    @Inject
    public LocationInfoDaoImpl(@Value("com.cap.bts.framework.location.domain.LocationInfo")Class<LocationInfo> clazz) {
        super(clazz);
        // TODO Auto-generated constructor stub
    }

    @Override
    public List<LocationInfo> getLocationInfoByLocationNo(String locationNo) {
        String hql = "from LocationInfo where locationNo = ?1";
        List<LocationInfo> listLocationInfo = super.getListByQueryWithVaParam(hql,locationNo);
        
        return listLocationInfo;
    }

}
